home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjlabel.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-31  |  1.6 KB  |  60 lines

  1. // Design Time Java Label implementation. (HPP)
  2.  
  3. #ifndef _DTJLABEL_HPP
  4. #define _DTJLABEL_HPP
  5.  
  6. #include "dtjcomp.hpp"
  7.                       
  8. enum __LabelAlignment {
  9.     eLabelAlignmentLeft        = 0,
  10.     eLabelAlignmentCenter     = 1,
  11.     eLabelAlignmentRight     = 2,
  12. };
  13.                       
  14. class METAEXPORTCLASSDEF DTJLabel : public DTJComponent 
  15. {
  16.     public:
  17.         DTJLabel( const MetaObject * pMetaObj );
  18.         virtual ~DTJLabel();
  19.         
  20.     //
  21.     // Style
  22.     //
  23.     //    The Windows style property of the associated Window.
  24.     //    This doesn't necessarily match GetWindow()->GetStyle()
  25.     //    because some styles are deferred until run-time (such
  26.     //    as WSVisible).
  27.  
  28.     virtual WStyle        GetStyle() const;
  29.     virtual WBool        SetStyle( WStyle stl, WBool clone=FALSE );
  30.  
  31.     //
  32.     // DefaultStyle
  33.     //
  34.     //    The style with which new instances are created.  Default
  35.     //    implementation returns GetWindow()->GetDefaultStyle().
  36.  
  37.     virtual WStyle        GetDefaultStyle() const;
  38.  
  39.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  40.                    ostream& src,
  41.                    MMCodeGenerationParms& pGenParms );
  42.  
  43.     virtual void GenerateTextProp( const WString& objPrefix, ostream& src,
  44.                        MMJCodeGenerationParms * ) const;
  45.  
  46.     virtual void GenClassName( WString & className ) const;
  47.  
  48.     virtual void EmitProperty( const WString& objPrefix, ostream& src,
  49.                    const MMProperty * prop ) const;
  50.  
  51.     protected:
  52.         virtual WStyle CheckExtraStyles(WStyle style);
  53. };
  54.  
  55. // needed for mdreader
  56. typedef DTJLabel DTjava__dot__awt__dot__Label__dot__102;
  57. typedef WLabel java__dot__awt__dot__Label__dot__102;
  58.  
  59. #endif // _DTJLABEL_HPP
  60.